package com.etc.service;


import com.etc.pojo.History;
import com.etc.pojo.User;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;


public interface UserPersonageService {

    /**
     * 修改头像
     * @param user
     * @return
     */
    boolean updateUserImg(User user, String imgPath);

    /**
     * 通过id查询用户随机数
     * @param user
     * @return
     */
    User queryUserByUserId(@Param("user") User user);

    /**
     * 修改密码
     * @return
     */
    boolean updateUserPassword( User user,String newPasswoed);

    /**
     * 增加Vip
     * @param user
     * @param dataTime
     * @return
     */
    boolean addUserVip(@Param("user") User user,Integer dataTime );

    /**
     * 增加Vip
     * @param user
     * @param dataTime
     * @return
     */
    boolean updateUserVipTime(User user, Integer dataTime );

    /**
     * 更改状态
     * @param user
     * @return
     */
    boolean updateUserVipState(User user);
}
